local loger = require('loger')
if not loger then
	print('require loger module fail')
	os.exit(-1)
end

local log = loger.new('DEBUG', nil, 1)
if log then
	print('log.new success')
	--print(log.getlevel())
else
	print('log.new fail')
end

local function test1()
	log.debug('this is debug info')
	log.info('this is info level')
	log.warn('this is warning level')
	log.info('hello %s', 'lua')
	log.warn('age %d', 28)
	log.error('only one string')
end

log.debug('in global test')
print('>>>>>>>>>>>>>>>>>>>>>>')
test1()
print('done\n')

